package com.ruoyi.t.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 t_order
 *
 * @author YY
 * @date 2025-02-06
 */
public class TOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String clientName;

    /** 订单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imgUrl;

    /** 款式id */
    @Excel(name = "款式id")
    private Long styleId;

    /** 名称 */
    @Excel(name = "名称")
    private String styleName;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 图片 */
    @Excel(name = "图片")
    private String logo;

    /** 实际数量 */
    @Excel(name = "实际数量")
    private Long actNum;

    /** 数量 */
    @Excel(name = "数量")
    private Long num;

    /** 订单定金 */
    @Excel(name = "订单定金")
    private BigDecimal deposit;

    /** 订单余额 */
    @Excel(name = "订单余额")
    private BigDecimal balance;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal totalPrice;

    /** 状态（0 订单提交 1 发货 2 送货） */
    @Excel(name = "状态", readConverterExp = "0=,订=单提交,1=,发=货,2=,送=货")
    private String status;

    private String orderNum;

    private String styleList;

    private String address;

    private List<TOrderStyle> map;

    private String isMaster;

    public String getIsMaster() {
        return isMaster;
    }

    public void setIsMaster(String isMaster) {
        this.isMaster = isMaster;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public List<TOrderStyle> getMap() {
        return map;
    }

    public void setMap(List<TOrderStyle> map) {
        this.map = map;
    }

    public String getStyleList() {
        return styleList;
    }

    public void setStyleList(String styleList) {
        this.styleList = styleList;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setClientName(String clientName)
    {
        this.clientName = clientName;
    }

    public String getClientName()
    {
        return clientName;
    }
    public void setOrderTime(Date orderTime)
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime()
    {
        return orderTime;
    }
    public void setImgUrl(String imgUrl)
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl()
    {
        return imgUrl;
    }
    public void setStyleId(Long styleId)
    {
        this.styleId = styleId;
    }

    public Long getStyleId()
    {
        return styleId;
    }
    public void setStyleName(String styleName)
    {
        this.styleName = styleName;
    }

    public String getStyleName()
    {
        return styleName;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setLogo(String logo)
    {
        this.logo = logo;
    }

    public String getLogo()
    {
        return logo;
    }
    public void setActNum(Long actNum)
    {
        this.actNum = actNum;
    }

    public Long getActNum()
    {
        return actNum;
    }
    public void setNum(Long num)
    {
        this.num = num;
    }

    public Long getNum()
    {
        return num;
    }
    public void setDeposit(BigDecimal deposit)
    {
        this.deposit = deposit;
    }

    public BigDecimal getDeposit()
    {
        return deposit;
    }
    public void setBalance(BigDecimal balance)
    {
        this.balance = balance;
    }

    public BigDecimal getBalance()
    {
        return balance;
    }
    public void setTotalPrice(BigDecimal totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public BigDecimal getTotalPrice()
    {
        return totalPrice;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("clientName", getClientName())
            .append("orderTime", getOrderTime())
            .append("imgUrl", getImgUrl())
            .append("styleId", getStyleId())
            .append("styleName", getStyleName())
            .append("price", getPrice())
            .append("logo", getLogo())
            .append("actNum", getActNum())
            .append("num", getNum())
            .append("deposit", getDeposit())
            .append("balance", getBalance())
            .append("totalPrice", getTotalPrice())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
